package com.yc.damaimaven.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import org.apache.logging.log4j.message.AsynchronouslyFormattable;

/**
 * <p>
 * 
 * </p>
 *
 * @author xw
 * @since 2024-07-09
 */
@Getter
@Setter
public class Cart implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 购物车ID
     */
    @TableId(value = "ciid", type = IdType.AUTO)
    private Integer ciid;

    /**
     * 用户ID
     */
    private Integer uid;

    /**
     * 商品ID
     */
    private Integer pid;

    /**
     * 商品数量
     */
    private Integer count;

    @TableField(exist = false)
    private Product product;
}
